import { createSelector } from 'reselect';
import { fromJS } from 'immutable'

/**
 * Direct selector to the global state domain
 */

const selectGlobal = state => {
  return state['globalReducer']
}

/**
 * Default selector used by Global
 */

const makeSelectLoading = () =>
createSelector(selectGlobal, globalState => globalState.get('loading'))

export default makeSelectLoading;
